<?php include("includes/session.php"); ?>
<!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Zeitgeist Resources - Forgot Password</title>
<?php include("header.php"); ?>
	<center>
	<table cellpadding="0" cellspacing="0" width="80%">
	<tr>
		<td align="left">
			<br /><br />
			<center>
			<table cellpadding="10" cellspacing="0" class="border" bgcolor="#aeaeae">
			<tr>
				<td>
			<?php
				if(isset($_SESSION['forgotpass']))
				{
					if($_SESSION['forgotpass'])
					{
						echo "<center><b>New Password Sent</b></center><br />";
						echo "<center>Please check your e-mail to retrieve your new password.</center>";
					}
					else
					{
						echo "<center><b>Sorry New Password Failed</b></center><br />";
						echo "<center>Please try again later</center>";
					}
					unset($_SESSION['forgotpass']);
				}
				else
				{
			?>
			
			<center><h2>Forgot Password</h2></center>
			<center>Please enter your username and e-mail address to receive a new password.</center><br />
			
			<center>
			<form action="includes/process.php" method="POST">
			<table border="0" cellspacing="0" cellpadding="3">
			<tr>
				<td>Username:</td>
				<td><input type="text" name="user" maxlength="30" value="<? echo $form->value("user"); ?>" style="background-color: #bcc6e1;"></td><td><? echo $form->error("user"); ?></td>
			</tr>
			<tr>
				<td colspan="2" align="right">
					<input type="hidden" name="subforgot" value="1">
					<input type="submit" value="Send New Password">
				</td>
			</tr>
			</table>
			</form>
			</center>
			<?php
				}
			?>
				</td>
			</tr>
			</table>
			</center>
		</td>
	</tr>
	</table>
	</center>
<?php include("footer.php"); ?>